package uk.ac.ebi.das.uniprot.image.controller;

import org.json.JSONObject;

import java.util.HashMap;

/**
 * Created by IntelliJ IDEA.
 * User: ljgarcia
 * Date: 27/06/11
 * Time: 14:31
 * To change this template use File | Settings | File Templates.
 */
public interface CartoonPainter {
    //Margins
	public static final int LEFT_MARGIN = 20;
	public static final int RIGHT_MARGIN = 20;
    public static final int BOTTOM_MARGIN = 10;
    //Rule
    public static final int RULER_Y = 20; //Y position for the rule
    public static final int PIXELS_DIVISION = 50;
	public static final int ABOVE_RULER = 10;
	public static final int BELOW_RULER = 30;
    //Shapes
    //public static final int rounded = 5;
    public static final float TRANSPARENCY = 0.5F;
    public static final float GRID_OPACITY = 0.1F;
    public static final int ROW_HEIGHT = 12;
    public static final int RECTANGLE_HEIGHT = 10;

    //Key
    public static final int LEFT_KEY_MARGIN = 15, RECT_LENGTH = 15, GAP_TO_TEXT = RECT_LENGTH + 5, RECT_HEIGHT = 5;
    public static final int CELL_WIDTH = 170, CELL_HEIGHT = 20, MAX_TEXT_ROW = 21;

    public void paintKey() throws Exception;
    public JSONObject paintSegment(String referenceURL, String serverURLs, String segmentAndRange, HashMap<String, String> featureSourceMap) throws Exception;
}
